package com.clwl.supervise.superviseapp.entity.result;

public enum ResultCode {

    SUCCESS(0,"成功"),
    ERROR(1,"请求失败"),
    PASWORD_DETAULT_ERROR(501,"修改默认密码"),
    SERVER_ERROR(500,"系统错误"),
    AUTH_ERROR(401,"账号未登录"),
    LOGIN_ERROR(403,"账号或密码错误"),
    NO_URL(404,"请求地址无效"),
    DISABLED_ERROR(401,"用户被禁用"),
    REPLACE_SUBMIT(222222,"不要频繁操作"),
    APP_UPDATE(666,"有新版本请尽快更新");

    private Integer code;

    private String  message;

    ResultCode(Integer code,String explanation){
        this.code = code;
        this.message = explanation;
    }

    public Integer code(){
        return this.code;
    }

    public String message(){
        return this.message;
    }




}
